//
//  LeLightGameObject.cpp
//  Leste
//
//  Created by 王乐 on 2022/1/28.
//

#include "LeLightGameObject.h"

#include "LeLightRenderer.h"
#include "LeLight.h"

LeLightGameObject::LeLightGameObject() {

}

LeLightGameObject::~LeLightGameObject() {

}

void LeLightGameObject::Initialize() {
    strName = "MyLight";

    // Transform
    // ---------
    m_Transform.setPosition(lightPos.x, lightPos.y, lightPos.z);
    m_Transform.setRotation(0.0f, 0.0f, 0.0f);
    m_Transform.setScale(0.2f, 0.2f, 0.2f);

    // Renderer
    // --------
    LeRenderer* pLightRenderer = new LeLightRenderer();
    pLightRenderer->initRenderer(this, "/Users/wangle/CLionProjects/Leste/res/shader/singlecolor.vs",
                                 "/Users/wangle/CLionProjects/Leste/res/shader/singlecolor.fs");

    // Initialize Components
    initComponents(pLightRenderer, nullptr, nullptr, nullptr);
}